package com.esun.payment_api.mapper;

import com.esun.payment_api.bean.*;
import com.esun.payment_api.dao.InvFormDao;
import com.esun.payment_api.domain.User;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HomePageMapper {
    List<MyApplicationBean> getMyApplication(Short userId, Short companyId, Integer flowStatus, String searchStr, Integer flowId);

    List<MyExamineBean> getMyExamine(Short userId, String searchStr, Integer flowId, String type);

    List<MyExamineBean> getMyExamineHistory(Short userId, Integer flowStatus, String searchStr, Integer flowId);
    //获取本部门已审批
    List<MyExamineBean> getMyDeptExamineHistory(Short userId, Short deptId, Integer flowStatus, String searchStr, Integer flowId);

    List<MyMessageBean> getMyMessage(Short userId, Boolean unreadOnly, String searchStr, Integer messageId);

    List<MyToDoBean> getMyToDo(Short userId, Boolean unreadOnly, String searchStr, Integer messageId);

    List<DkInvoiceBean> queryInvoice(Short companyId, Integer flowStatus, String searchStr);

    List<DkReceiveBean> queryReceive(Short companyId, Short deptId, String searchStr);

    List<InvFormDao> getOverdueInvoice(Short companyId, Short userId, Short deptId, String searchStr);

    List<UnfilledBean> getUnfilledList(Short companyId, Short userId, Short deptId, String searchStr);

}
